package com.lanou.mapper;

import com.lanou.bean.Cost;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CostMapper {
    List<Cost> selectAllCost ();
    List<Cost> selectAllCost1 ();
    List<Cost> selectAllCost2 ();

    void addCost(Cost cost);
    void startOrStop (@Param("costId") int id , @Param("status") String status , @Param("starttime") String starttime);
    void deleCost(@Param("costId") int id);
    Cost selectCostById (@Param("costId") int id);
    void updataCost(@Param("costId") int costId, @Param("name") String name,
                    @Param("baseDuration") int baseDuration, @Param("baseCost") int baseCost,
                    @Param("unitCost") int unitCost, @Param("descr") String descr
            , @Param("costType") String costType);

}